from pydantic import BaseModel

# 定义数据模型
class CreatUser(BaseModel):
    id: int
    username: str

    def __str__(self):
        return "id：%s, name：%s" % (str(self.userid), self.username)